package com.crtf.kotlin.maven.lombok.kotlin.dto

import com.crtf.kotlin.maven.lombok.kotlin.dto.impl.GoldfishDTO
import com.crtf.kotlin.maven.lombok.kotlin.dto.impl.TunaDTO
import com.fasterxml.jackson.annotation.JsonSubTypes
import com.fasterxml.jackson.annotation.JsonTypeInfo

@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "name")
@JsonSubTypes(
    value = [
        JsonSubTypes.Type(value = GoldfishDTO::class, name = "金枪鱼"),
        JsonSubTypes.Type(value = TunaDTO::class, name = "金枪鱼"),
    ]
)
interface FishDTO
